<?php
require_once 'lib/validation/RegEx.php';
/**
 * Description of Email
 *
 * @author      Maciej Zawieja.
 * @link        http://akvus.pl
 * @package     Akvus Framework.
 * @subpackage  Libraries.
 * @copyright   2011 All rights reserved for Maciej Zawieja.
 * @version     1.0.0 - 19.08.2011 (Framework 1.3)
 */
class Email extends RegEx implements iValidation {

    const PARAMS_QUANTITY = 0;

    function   __construct() {
        $this->Pattern( '/^([a-z0-9]{1})([a-z0-9\+_-]*)((\.[a-z0-9\+_-]+)*)@([a-z0-9]{1})((([a-z0-9-]*[-]{2})|([a-z0-9])*|([a-z0-9-]*[-]{1}[a-z0-9]+))*)((\.[a-z0-9](([a-z0-9-]*[-]{2})|([a-z0-9]*)|([a-z0-9-]*[-]{1}[a-z0-9]+))+)*)\.([a-z0-9]{2,6})$/Diu' );
    }
}